//
// Created by chizuru on 2025/9/2.
//

#pragma once
#include <string>
#define	CCDCOMMANDTIMEBOB 80	//BOBCAT相机指令传输时间。
static std::string printCLBErrorMessage(uint8_t errorCode) {
    switch (errorCode) {
        case 0x00: return "No error";
        case 0x01: return "Invalid command";
        case 0x02: return "Time-out";
        case 0x03: return "Checksum error";
        case 0x04: return "Value less than minimum";
        case 0x05: return "Value higher than maximum";
        case 0x06: return "AGC error";
        case 0x07: return "Supervisor mode error";
        case 0x08: return "Mode not supported error";
        default: return "Unknown error";
    }
}

